package demo1;

import java.awt.*;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86138
 * Date: 2024-07-09
 * Time: 16:32
 */
public class Test {
    public static void printmap(Shape shape){
        shape.print();
    }

    public static void main(String[] args) {
        Triangle triangle = new Triangle();
        Circle circle = new Circle();
        Rectangle rectangle = new Rectangle();

        printmap(circle);
        printmap(triangle);
        printmap(rectangle);
    }
}
